package com.my.aslife.module.common;


public class RedisConstant {

    public static final String LOGIN_USER_TOKEN = "login:user:token:";
    public static final String CHANGE_STATUS_KEY = "change:status:user:";
    public static final String USER_CHANGE_ADDRESS = "user:change:address:";
    public static final String USER_FEEDBACK_NULL = "user:feedBack-null:";
    public static final String USER_CHANGE_NICKNAME = "user:change:nick-name:";
    public static final String USER_APPLY_RUNNER = "user:runner:apply:";
    public static final String USER_RUNNER_ACCEPTED = "user:runner:accept-demand:";
    public static final String USER_RUNNER_DEMAND_LIST = "user:runner:list-demand:";
    public static final String USER_CONSULT_ORDER = "user:consult-order:";
    public static final String USER_TRANSFER_ORDER ="user:transfer-order:";

    // email
    public static final String EMAIL_REGISTER_CODE = "email:code:register:";
    public static final String EMAIL_RESET_PWD_CODE = "email:code:reset-pwd:";
    public static final String EMAIL_LOGIN_CODE = "email:code:login:";
    public static final String EMAIL_USER_TIMES = "email:user:times:";
    public static final String EMAIL_REGISTER_USER_EXIST = "email:register-user-exist:";
    public static final String EMAIL_REMINDER = "email:reminder:";

    public static final String AUTHORITY_NOT_DELETE = "authority:not-delete:";
    public static final String SENSITIVE_CONTEXT = "sensitive:context";
    public static final String IP_ADDRESS = "ip:address:";

    // 任务
    public static final String TASK = "task:";
    public static final String DEMAND = "demand:";

    // 账号违规
    public static final String ILLEGAL_USER = "illegal:user:";
    public static final Long ONE_DAY_TIME = (long) (24 * 60 * 60 * 1000);

    public static final Long ONE_DAY = 1L;

    public static final Long ONE_HOUR = 1L;

    public static final Long ONE_WEEK = 7L;

    public static final Long EMAIL_VALID_TIME = 5L;

    public static final Long CHANGE_STATUS_TTL = 5L;

    public static final Short EMAIL_AVAILABLE_TIMES = 5;
}
